<template>
  <div class="hello">
    <h3>列表渲染</h3>
    <ul>
      <li v-for="(item,index) in newspaper":key="item.index">
        {{ item.title }}
      </li>
    </ul>
  </div>
</template>

<script>
export default {
  name: 'HelloWorld',
  data(){
    return{
      newspaper:[
        {
          id:1001,
          title:"每日新闻1"
        },
        {
          id:1002,
          title:"每日新闻2"
        },
        {
          id:1003,
          title:"每日新闻3"
        },
        {
          id:1004,
          title:"每日新闻4"
        }
      ]
    }
  }
}
</script>

